package top.xiangqifu.springboot2_auth.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import top.xiangqifu.springboot2_auth.validate.RegInfo;
import top.xiangqifu.springboot2_auth.validate.UserInfoValidate;
import top.xiangqifu.springboot2_auth.validate.UserValidate;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import java.io.Serializable;
import java.util.Date;

@Data
@ApiModel(value = "用户附加信息" , description = "用户附加信息应答对象")
public class TbAuthUserInfo implements Serializable {
  private static final long serialVersionUID = 1L;
  @ApiModelProperty(value = "用户id",example = "")
  @ApiParam(hidden = true)
  private Integer userId;
  @ApiModelProperty(value = "账号",example = "xqf666")
  @ApiParam(hidden = true)
  @NotBlank(message = "用户账号必须填写必须填写",groups = {UserInfoValidate.reg.class})
  private String nickname;
  @ApiModelProperty(value = "性别",example = "")
  @ApiParam(hidden = true)
  private String sex;
  @ApiModelProperty(value = "邮箱",example = "")
  @ApiParam(hidden = true)
  private String email;
  @ApiModelProperty(value = "手机号码",example = "")
  @ApiParam(hidden = true)
  private String phone;
  @ApiModelProperty(value = "图片地址",example = "")
  @ApiParam(hidden = true)
  private String imgurl;
  @ApiModelProperty(value = "修改时间",example = "")
  @ApiParam(hidden = true)
  private Date lastupdate;

}
